package com.codinghero.example.jdk.lock.reetrantrw;

public class WriteOper implements Runnable {
	public void run() {
		ReadWriteLock.INSTANCE.writeLock().lock();
		System.out.println("write start");
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("write end");
		ReadWriteLock.INSTANCE.writeLock().unlock();
	}
}
